#ifndef CONTROLPANEL_H
#define CONTROLPANEL_H

#include <QWidget>
#include "SpinBoxWithSlider.h"
#include "ColorPanel.h"
#include <QLabel>
#include <QLayout>

class ControlPanel : public QWidget
{
Q_OBJECT
public:
    explicit ControlPanel(QWidget* parent = nullptr);
    ~ControlPanel() override;

public slots:
    void OnMcsUpdate();

private slots:
	void OnBackgroundColorChange(const QColor& c);
	void OnIndexChange(int i);

signals:
	void StatusUpdate(const QColor& c, int index);

private:
    ColorPanel* backgroundColorPanel;

    SpinBoxWithSlider* frameController;
    QLabel* frameControlLabel;

    QVBoxLayout* layout;
    QVBoxLayout* frameControlLayout;

private:
	QColor backgroundColor = QColor(0, 0, 255);
	int index = 0;
};


#endif //CONTROLPANEL_H
